############################################################## 
## MOD Title:		Topic calendar - Part 1 (common to all setup) noteBored
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This mod adds a calendar to your board, working with natural phpBB auth.
##
## MOD Version:		1.0.1a noteBored
## 
## Installation Level:	Easy
## Installation Time:	25 Minutes
## Files To Edit:
##			templates/noteBored/overall_header.tpl
##			templates/noteBored/posting_body.tpl
##			templates/noteBored/noteBored.cfg
##
## Included Files:
##			calendar.php
##			calendar_scheduler.php
##
##			functions_calendar.php
##			toggle_display.js
##			mod_calendar.php
##
##			lang_extend_topic_calendar.php
##
##			calendar_body.tpl
##			calendar_box.tpl
##			calendar_overview_profil.tpl
##			calendar_overview_topic.tpl
##			calendar_scheduler_body.tpl
##
##				--- graphics ---
##			graph.gif/folder_calendar.gif
##			graph.gif/icon_calendar.gif
##			graph.gif/icon_mini_calendar.gif
##			graph.gif/icon_tiny_profile.gif
##			graph.gif/icon_tiny_topic.gif
##			graph.gif/icon_down_arrow.gif
##			graph.gif/icon_up_arrow.gif
##
##				--- mods settings ---
##			mod-mods_settings/admin_board_extend.php
##			mod-mods_settings/functions_mods_settings.php
##			mod-mods_settings/board_config_extend_body.tpl
##			mod-mods_settings/lang_extend_mods_settings.php
##
##				--- lang settings ---
##			mod-lang_settings/lang_extend_mac.php
##
##				--- topics list ---
##			mod-topics_list/functions_topics_list.php
##			mod-topics_list/topics_list_box.tpl
##
##			mod-topics_list/graph.gif/folder_announce_own.gif
##			mod-topics_list/graph.gif/folder_announce_new_own.gif
##			mod-topics_list/graph.gif/folder_own.gif
##			mod-topics_list/graph.gif/folder_new_own.gif
##			mod-topics_list/graph.gif/folder_hot_own.gif
##			mod-topics_list/graph.gif/folder_new_hot_own.gif
##			mod-topics_list/graph.gif/folder_lock_own.gif
##			mod-topics_list/graph.gif/folder_lock_new_own.gif
##			mod-topics_list/graph.gif/folder_sticky_own.gif
##			mod-topics_list/graph.gif/folder_sticky_new_own.gif
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##
##	o part 1 is common to all setups
##	o part 2 is required if you haven't Split topic type v 2 or greater installed
##	o part 3 is required if you haven't Categories hierarchy v 2.0.4 or greater
##	o part 4 is required if you have Categories hierarchy v 2.0.4 or greater
##
##	o This mod was originaly based on ModjavLinux's mycalendar 2.2.6, but differs now in so
##	many points that it can't be qualified as an evolution, but rather a brand new way to
##	manage events with a calendar. Anyway, it wouldn't have been fair to not mentioned the
##	old-timer as the grand-father of this one :).
##
##	o The javascript included in calendar_box.tpl comes from Mojavlinux's MyCalendar 2.2.6 
##	( http://www.mojavelinux.com/ )
##
##	o For those using the Profile Control Panel, the calendar will also display the birthday
##	of your users.
##
##	o This mod uses mods settings mod (also included with the pack) to manage configuration values.
##	If you whish to grant your users the ability to customize their setting, install it too :).
##
##	o This mod can be installed using Nutzzy's EasyMOD v 0.0.10a ( http://phpbb.com/phpBB/viewtopic.php?t=125071 ),
##	on a phpBB 2.0.4, 2.0.5 and 2.0.6
## 
############################################################## 
## MOD History:
##
##   2003-11-11 - Version 1.0.1
##	- no changes to the mod, only the installation description has been enhance to ease the
##	installation with Categories hierarchy v 2.0.4 or greater
##
##   2003-10-30 - Version 1.0.0
##      - fix a bug on DST date change in scheduler
##	- fix the -1 issue in preview post
##	- cut off softer the message in the overview event window
##
##   2003-09-14 - Version 1.0.0 beta 1.5
##	- fix empty auths
##	- various little design fixes
##	- add forum selection
##	- add prec/next month
##	- upgrade mod-topics_list version
##
##   2003-09-09 - Version 1.0.0 beta 1.4
##	- split the mod in two part for those having or planing to install the split topic type mod
##	- adapt the mod to post icon mod
##	- fix a collision between send email input field and events on flying windows
##	- remove the jumbox on calendar view
##	- fix overview window width and right position with mozilla
##	- fix an error on days shown moved with events in little month box
##	- add a link to return from schedular to calendar
##
##   2003-09-05 - Version 1.0.0 beta 1.3
##	- fix the birthday issue on some server (DST active issue with mktime())
##	- add default icons (in prevision for posts icon mod)
##
##   2003-08-26 - Version 1.0.0 beta 1.2
##	- enhancement of the scheduler
##      - getting various type events modularization
##
##   2003-08-28 - Version 1.0.0 beta 1.0a
##      - first beta
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy calendar_body.tpl to templates/noteBored/calendar_body.tpl
copy calendar_box.tpl to templates/noteBored/calendar_box.tpl
copy calendar_overview_profil.tpl to templates/noteBored/calendar_overview_profil.tpl
copy calendar_overview_topic.tpl to templates/noteBored/calendar_overview_topic.tpl
copy calendar_scheduler_body.tpl to templates/noteBored/calendar_scheduler_body.tpl

copy graph.gif/folder_calendar.gif to templates/noteBored/images/folder_calendar.gif
copy graph.gif/icon_calendar.gif to templates/noteBored/images/icon_calendar.gif
copy graph.gif/icon_mini_calendar.gif to templates/noteBored/images/icon_mini_calendar.gif
copy graph.gif/icon_tiny_profile.gif to templates/noteBored/images/icon_tiny_profile.gif
copy graph.gif/icon_tiny_topic.gif to templates/noteBored/images/icon_tiny_topic.gif
copy graph.gif/icon_down_arrow.gif to templates/noteBored/images/icon_down_arrow.gif
copy graph.gif/icon_up_arrow.gif to templates/noteBored/images/icon_up_arrow.gif
#
#-----[ COPY ]------------------------------------------------
#
# this part comes from mods settings mod, and is required for topic calendar mod
#
copy mod-mods_settings/board_config_extend_body.tpl to templates/noteBored/admin/board_config_extend_body.tpl
#
#-----[ COPY ]------------------------------------------------
#
# this part is relative to the topics list mod
#
copy mod-topics_list/topics_list_box.tpl to templates/noteBored/topics_list_box.tpl

copy mod-topics_list/graph.gif/folder_announce_own.gif to templates/noteBored/images/folder_announce_own.gif
copy mod-topics_list/graph.gif/folder_announce_new_own.gif to templates/noteBored/images/folder_announce_new_own.gif
copy mod-topics_list/graph.gif/folder_own.gif to templates/noteBored/images/folder_own.gif
copy mod-topics_list/graph.gif/folder_new_own.gif to templates/noteBored/images/folder_new_own.gif
copy mod-topics_list/graph.gif/folder_hot_own.gif to templates/noteBored/images/folder_hot_own.gif
copy mod-topics_list/graph.gif/folder_new_hot_own.gif to templates/noteBored/images/folder_new_hot_own.gif
copy mod-topics_list/graph.gif/folder_lock_own.gif to templates/noteBored/images/folder_lock_own.gif
copy mod-topics_list/graph.gif/folder_lock_new_own.gif to templates/noteBored/images/folder_lock_new_own.gif
copy mod-topics_list/graph.gif/folder_sticky_own.gif to templates/noteBored/images/folder_sticky_own.gif
copy mod-topics_list/graph.gif/folder_sticky_new_own.gif to templates/noteBored/images/folder_sticky_new_own.gif
#
#-----[ OPEN ]------------------------------------------------
#
templates/noteBored/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : calendar -->
#
#-----[ FIND ]------------------------------------------------
#
<!-- BEGIN switch_enable_pm_popup -->
#
#-----[ BEFORE, ADD ]-----------------------------------------
# this line may already exists ; if so, just ignore it
<script language="JavaScript" type="text/javascript" src="includes/toggle_display.js"></script>

#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
#						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}"
<a href="{U_FAQ}"
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
<a href="{U_FAQ}"
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
<a href="{U_CALENDAR}" class="mainmenu"><img src="{I_CALENDAR}" width="12" height="13" border="0" alt="{L_CALENDAR}" hspace="3" />{L_CALENDAR}</a>&nbsp; &nbsp;
#
#-----[ FIND ]------------------------------------------------
#
		</table>

		<br />

#
#-----[ AFTER, ADD ]------------------------------------------
#
		{CALENDAR_BOX}
		
#
#-----[ OPEN ]------------------------------------------------
#
templates/noteBored/posting_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<script language="JavaScript" type="text/javascript">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : calendar -->
#
#-----[ FIND ]------------------------------------------------
#
		  <!-- BEGIN switch_type_toggle -->
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
		  <!-- BEGIN switch_type_cal -->
		  <tr><td colspan="2"><hr /></td></tr>
		  <tr>
			<td></td>
			<td valign="top">
				<table cellpadding="2" cellspacing="0" width="100%" border="0">
				<tr>
					<td align="right" nowrap="nowrap"><span class="gen"><b>{L_CALENDAR_TITLE}&nbsp;:</b></span></td>
					<td align="left" width="100%">
						<span class="genmed">
							{S_CALENDAR_DAY}{S_CALENDAR_MONTH}{S_CALENDAR_YEAR}&nbsp;
							<a href="#" name="#" class="genmed" onClick="document.post.topic_calendar_day.value={TODAY_DAY};document.post.topic_calendar_month.value={TODAY_MONTH};document.post.topic_calendar_year.value={TODAY_YEAR};" />{L_TODAY}</a>
						</span>
					</td>
				</tr>
				<tr>
					<td align="right" nowrap="nowrap"><span class="gen"><b>{L_TIME}&nbsp;:</b></span></td>
					<td align="left" width="100%">
						<span class="genmed">
							<input name="topic_calendar_hour" type="post" maxlength="2" size="3" value="{CALENDAR_HOUR}" />&nbsp;{L_HOURS}&nbsp;&nbsp;
							<input name="topic_calendar_min" type="post" maxlength="2" size="3" value="{CALENDAR_MIN}" />&nbsp;{L_MINUTES}
						</span>
					</td>
				</tr>
				<tr><td></td><td><hr /></td></tr>
				<tr>
					<td align="right" nowrap="nowrap"><span class="gen"><b>{L_CALENDAR_DURATION}&nbsp;:</b></span></td>
					<td align="left" width="100%">
						<span class="genmed">
							<input name="topic_calendar_duration_day" type="post" maxlength="5" size="3" value="{CALENDAR_DURATION_DAY}" />&nbsp;{L_DAYS}&nbsp;&nbsp;
							<input name="topic_calendar_duration_hour" type="post" maxlength="5" size="3" value="{CALENDAR_DURATION_HOUR}" />&nbsp;{L_HOURS}&nbsp;&nbsp;
							<input name="topic_calendar_duration_min" type="post" maxlength="5" size="3" value="{CALENDAR_DURATION_MIN}" />&nbsp;{L_MINUTES}
						</span>
					</td>
				</tr>
				</table>
			</td>
		  </tr>
		  <tr><td colspan="2"><hr /></td></tr>
		  <!-- END switch_type_cal -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/noteBored/noteBored.cfg
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : topics list -----------------------------------------------------------------------------
//-- mod : calendar --------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#

//-- mod : calendar --------------------------------------------------------------------------------
//-- add
$images['icon_calendar']		= "$current_template_images/icon_calendar.gif";
$images['menu_calendar']		= "$current_template_images/icon_mini_calendar.gif";
$images['icon_tiny_topic']		= "$current_template_images/icon_tiny_topic.gif";
$images['icon_tiny_profile']	= "$current_template_images/icon_tiny_profile.gif";
$images['folder_birthday']		= "$current_template_images/folder_calendar.gif";

$images['up_arrow']				= "$current_template_images/icon_up_arrow.gif";
$images['down_arrow']			= "$current_template_images/icon_down_arrow.gif";
//-- fin mod : calendar ----------------------------------------------------------------------------

//-- mod : topics list -----------------------------------------------------------------------------
//-- add
$images['folder_global_announce']		= "$current_template_images/folder_announce.gif";
$images['folder_global_announce_new']		= "$current_template_images/folder_announce_new.gif";
$images['folder_global_announce_own']		= "$current_template_images/folder_announce_own.gif";
$images['folder_global_announce_new_own']	= "$current_template_images/folder_announce_new_own.gif";
$images['folder_own']				= "$current_template_images/folder_own.gif";
$images['folder_new_own']			= "$current_template_images/folder_new_own.gif";
$images['folder_hot_own']			= "$current_template_images/folder_hot_own.gif";
$images['folder_hot_new_own']			= "$current_template_images/folder_new_hot_own.gif";
$images['folder_locked_own']			= "$current_template_images/folder_lock_own.gif";
$images['folder_locked_new_own']		= "$current_template_images/folder_lock_new_own.gif";
$images['folder_sticky_own']			= "$current_template_images/folder_sticky_own.gif";
$images['folder_sticky_new_own']		= "$current_template_images/folder_sticky_new_own.gif";
$images['folder_announce_own']			= "$current_template_images/folder_announce_own.gif";
$images['folder_announce_new_own']		= "$current_template_images/folder_announce_new_own.gif";
//-- fin mod : topics list -------------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM